﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 枚举实体
    /// </summary>
    public class EnumEntity
    {
        #region 值
        /// <summary>  
        /// 值  
        /// </summary>  
        [DisplayName("值")]
        public int Value { get; set; }

        #endregion

        #region 名称
        private string name = "";
        /// <summary>  
        /// 名称
        /// </summary>  
        [DisplayName("名称")]
        public string Name { get { return name; } set { name = value.ReplaceNull(); } }

        #endregion

        #region 描述
        private string desc = "";
        /// <summary>  
        /// 描述
        /// </summary>  
        [DisplayName("描述")]
        public string Desc { get { return desc; } set { desc = value.ReplaceNull(); } }

        #endregion

    }
}
